﻿using ZQNB.AppLib.Cloud.Models;
using ZQNB.Common;
using ZQNB.Common.Models;

namespace ZQNB.AppLib.Cloud.Helpers
{
    /// <summary>
    /// 云中心账号的认证帮助类
    /// </summary>
    public interface ICloudMembershipHelper
    {
        /// <summary>
        /// 是否登录
        /// </summary>
        /// <returns></returns>
        bool IsCurrentLogin();

        /// <summary>
        /// 获取当前的身份标识
        /// </summary>
        /// <returns></returns>
        string GetCurrentIdentity();

        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="logon"></param>
        /// <returns></returns>
        MessageResult Login(CloudAccountLogon logon);

        /// <summary>
        /// 登出
        /// </summary>
        void Logout();

        /// <summary>
        /// 修改密码
        /// </summary>
        /// <param name="changePass"></param>
        /// <returns></returns>
        MessageResult ChangePassword(CloudAccountChangePassword changePass);
    }
}
